import time;

TIME_FORMAT = '%Y-%M-%d %H:%M:%S';

class BaseLogger():
	ERROR   = 0;
	WARNING = 1;
	DEBUG   = 2;

	def __init__(self, level = ERROR):
		self.level = level

	def format(self, level, message):
		return "[%s] (%s) %s" % (time.strftime(TIME_FORMAT), level, message,)

	def filter(self, level):
		return level <= self.level;

klass = None;
